package leecode

import "fmt"

func vowelStrings(words []string, left int, right int) int {
	hashMap := map[string]bool{
		"a": true,
		"e": true,
		"i": true,
		"o": true,
		"u": true,
	}
	var result int
	for i := left; i <= right; i++ {
		str := words[i]
		fmt.Print(str[:1], str[len(str)-1:])
		if hashMap[str[:1]] && hashMap[str[len(str)-1:]] {
			result++
		}
	}
	return result
}
